﻿using System;

namespace diantou.web.ajax.admin
{
    /// <summary>
    /// 邮件模版调用
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class mail : adminHandle<mail>
    {
        /// <summary>
        /// 添加邮件模版
        /// </summary>
        /// <param name="id"></param>
        /// <param name="onReturn"></param>
        public void Append(diantou.dataAccess.mail value, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            diantou.dataAccess.tcpCall.mail.append(value, onReturn);
        }
        /// <summary>
        /// 修改邮件模版
        /// </summary>
        /// <param name="id"></param>
        /// <param name="onReturn"></param>
        public void Rework(diantou.dataAccess.mail value, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.dataAccess.tcpCall.mail.rework(value, onReturn);
        }
        /// <summary>
        /// 删除邮件模版
        /// </summary>
        /// <param name="id"></param>
        /// <param name="onReturn"></param>
        public void Delete(int id, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.dataAccess.tcpCall.mail.delete(id, onReturn);
        }
    }
}
